﻿<Window x:Class="TfsBugger.AppShell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="TFS Bugger" Height="400" Width="784">
	<Window.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="DefaultStyles.xaml" />
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</Window.Resources>
	<Grid VerticalAlignment="Stretch">
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
		</Grid.ColumnDefinitions>
		<DockPanel Grid.Column="0" LastChildFill="True">
			<Menu DockPanel.Dock="Top">
				<Menu.Items>
					<MenuItem Header="File">
						<MenuItem.Items>
							<MenuItem Header="New">
								<MenuItem.Items>
									<MenuItem Header="Check-In Bugger" Click="OnCreateCheckInBuggerCommand" />
								</MenuItem.Items>
							</MenuItem>
							<MenuItem Header="Exit"></MenuItem>
						</MenuItem.Items>
					</MenuItem>
				</Menu.Items>
			</Menu>
			<StackPanel Orientation="Horizontal" Width="Auto" Height="33" DockPanel.Dock="Top" Background="{StaticResource BlackGlass}">
				<Button Style="{StaticResource Style_ButtonDefault}" Click="OnConnectButtonClick">
					<TextBlock Foreground="White" Text="Connect..." />
				</Button>
			</StackPanel>
			<DockPanel DockPanel.Dock="Top" LastChildFill="True">
				<Grid VerticalAlignment="Stretch">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="Auto" MinWidth="100"/>
						<ColumnDefinition Width="1" />
						<ColumnDefinition Width="*" MinWidth="500" />
					</Grid.ColumnDefinitions>
					
					<Border BorderBrush="Gray" Background="{StaticResource SoftBackground}">
						<ScrollViewer VerticalScrollBarVisibility="Auto">
							<DockPanel Name="dpBuggers" Grid.Column="0" Width="Auto" VerticalAlignment="Top"></DockPanel>
						</ScrollViewer>						
					</Border>
					
					<GridSplitter Grid.Column="1" Width="1" BorderThickness="1" ResizeBehavior="PreviousAndNext">
						<GridSplitter.BorderBrush>
							<SolidColorBrush Color="Gray"  />
						</GridSplitter.BorderBrush>
					</GridSplitter>
					<DockPanel Grid.Column="2" HorizontalAlignment="Stretch">
						<TabControl Name="tabsBuggers" Margin="5">
						</TabControl>
					</DockPanel>
				</Grid>
			</DockPanel>
		</DockPanel>
	</Grid>
	
</Window>
